<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="处理卷快照中间状态">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="Open_Stack_00069.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="">
<meta name="DC.Publisher" content="20250306">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="Open_Stack_00074">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>处理卷快照中间状态</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="Open_Stack_00074"></a><a name="Open_Stack_00074"></a>

<h1 class="topictitle1">处理卷快照中间状态</h1>
<div><div class="section"><h4 class="sectiontitle">现象描述</h4><p>在卷快照创建/删除中时，卷快照处于creating、deleting、error_deleting状态不可用。</p>
</div>
<div class="section"><h4 class="sectiontitle">可能原因</h4><ul><li>卷快照在某个操作过程中系统出现异常，导致卷快照状态未能及时更新。</li><li>使用管理数据备份恢复功能，把数据库回退到之前的一个备份点。例如：在备份之后有对卷快照的操作，卷快照的状态进行了更新，数据库处理完成，此时备份恢复会回退数据库记录，数据库中卷快照信息恢复为备份点的状态。</li></ul>
</div>
<div class="section"><h4 class="sectiontitle">操作步骤</h4><p>根据<a href="#Open_Stack_00074__table13437176222">表1</a>，确定对卷快照的处理方法，其他场景请联系技术支持工程师协助解决。</p>

<div class="tablenoborder"><a name="Open_Stack_00074__table13437176222"></a><a name="table13437176222"></a><table cellpadding="4" cellspacing="0" summary="" id="Open_Stack_00074__table13437176222" frame="border" border="1" rules="all"><caption><b>表1 </b>卷快照状态处理方式</caption><colgroup><col style="width:20%"><col style="width:20%"><col style="width:20%"><col style="width:20%"><col style="width:20%"></colgroup><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.6.1.1"><p>卷快照状态</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.6.1.2"><p>是否为中间态</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.6.1.3"><p>含义</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.6.1.4"><p>可能场景</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.6.1.5"><p>处理方式</p>
</th>
</tr>
</thead>
<tbody><tr><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.6.1.1 "><p>creating</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.6.1.2 "><p>Y</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.6.1.3 "><p>创建中</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.6.1.4 "><p>创建卷快照</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.6.1.5 "><p><a href="#Open_Stack_00074__li149172916333">处理方法一</a></p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.6.1.1 "><p>deleting</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.6.1.2 "><p>Y</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.6.1.3 "><p>删除中</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.6.1.4 "><p>删除卷快照</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.6.1.5 "><p><a href="#Open_Stack_00074__li825218114713">处理方法二</a></p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.6.1.1 "><p>error_deleting</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.6.1.2 "><p>N</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.6.1.3 "><p>删除失败</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.6.1.4 "><p>删除卷快照失败</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.6.1.5 "><p><a href="#Open_Stack_00074__li825218114713">处理方法二</a></p>
</td>
</tr>
</tbody>
</table>
</div>
<p><strong>处理方法一</strong></p>
</div>
<ol><li id="Open_Stack_00074__li149172916333"><a name="Open_Stack_00074__li149172916333"></a><a name="li149172916333"></a><span>使用PuTTY，以<strong>fsp</strong>账号通过管理IP地址登录任一OpenStack节点。</span></li><li id="Open_Stack_00074__li42781127135216"><a name="Open_Stack_00074__li42781127135216"></a><a name="li42781127135216"></a><span>在当前主机导入环境变量。具体操作请参见对应版本的<a href="https://support.huawei.com/enterprise/zh/huawei-cloud-stack/huawei-cloud-stack-pid-23864287" target="_blank" rel="noopener noreferrer">《华为云Stack 产品文档》</a>中的“导入环境变量”章节。</span></li><li id="Open_Stack_00074__li13882133911368"><a name="Open_Stack_00074__li13882133911368"></a><a name="li13882133911368"></a><span>执行如下命令，在节点上查看该卷快照信息。</span><p><ol type="a"><li>执行如下命令，采用安全方式操作。<pre class="screen">runsafe</pre>
<p>显示如下信息：</p>
<pre class="screen">Input command:</pre>
</li><li>执行以下命令，查看该卷快照状态信息。<pre class="screen">cinder snapshot-show <em>快照ID</em></pre>
<p>回显信息中status项，是否与审计报告中卷快照状态一致？</p>
<ul><li>是，执行<a href="#Open_Stack_00074__li385991723817">4</a>。</li><li>否：联系技术支持工程师协助解决。</li></ul>
</li></ol>
</p></li><li id="Open_Stack_00074__li385991723817"><a name="Open_Stack_00074__li385991723817"></a><a name="li385991723817"></a><span>检查审计报告中的last_update_time与当前时间是否相差24小时以上。</span><p><ul><li>是，执行<a href="#Open_Stack_00074__li89293393381">5</a>。</li><li>否：联系技术支持工程师协助解决。</li></ul>
</p></li><li id="Open_Stack_00074__li89293393381"><a name="Open_Stack_00074__li89293393381"></a><a name="li89293393381"></a><span>设置卷快照的状态为error。</span><p><div class="p">参照<a href="#Open_Stack_00074__li13882133911368">3</a>，在安全模式下执行如下命令。<pre class="screen">cinder snapshot-reset-state <em>快照ID</em> --state error</pre>
</div>
<p>回显信息中status项，是否已经修改为error？</p>
<ul><li>是，操作结束。</li><li>否：联系技术支持工程师协助解决。</li></ul>
</p></li><li><span>检查卷快照状态。</span><p><p>参照<a href="#Open_Stack_00074__li13882133911368">3</a>，在安全模式下执行如下命令。</p>
<pre class="screen">cinder snapshot-show <em>快照ID</em></pre>
<p>回显信息中status项，是否已经修改为error？</p>
<ul><li>是，操作结束。</li><li>否：联系技术支持工程师协助解决。</li></ul>
</p></li><li><span>执行如下命令，删除卷快照。</span><p><pre class="screen">cinder snapshot-delete<strong> </strong><em>快照uuid</em></pre>
<div class="note"><img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span><div class="notebody"><p>快照uuid：审计报告snap_id字段取值。</p>
</div></div>
</p></li><li id="Open_Stack_00074__li77422894012"><a name="Open_Stack_00074__li77422894012"></a><a name="li77422894012"></a><span>执行如下命令，检查卷快照是否删除成功。</span><p><pre class="screen">cinder snapshot-show<strong> </strong><em>快照uuid</em></pre>
<div class="note"><img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span><div class="notebody"><p>快照uuid：审计报告snap_id字段取值。</p>
</div></div>
<p>回显信息如下说明卷快照被删除成功</p>
<pre class="screen">ERROR: No snapshot with a name or ID of 'e318e16e-5a1c-471f-89c2-5c76719aa346' exists.</pre>
<p>回显信息中status如果为error_deleting，说明卷快照删除失败。</p>
<p>回显信息中status如果为deleting，说明卷快照正在删除，需要等一会再次执行<a href="#Open_Stack_00074__li77422894012">8</a>，直到确定卷快照删除成功或者失败。</p>
<div class="p">卷快照是否删除成功？<ul><li>是，操作结束。</li><li>否：联系技术支持工程师协助解决。</li></ul>
</div>
</p></li></ol>
<p><strong>处理方法二</strong></p>
<ol><li id="Open_Stack_00074__li825218114713"><a name="Open_Stack_00074__li825218114713"></a><a name="li825218114713"></a><span>登录任一OpenStack节点，请参见<a href="#Open_Stack_00074__li149172916333">1</a>。</span></li><li><span>在当前主机导入环境变量，详细操作请参见<a href="#Open_Stack_00074__li42781127135216">2</a>。</span></li><li id="Open_Stack_00074__li18597143712439"><a name="Open_Stack_00074__li18597143712439"></a><a name="li18597143712439"></a><span>执行如下命令，在节点上查看该卷快照信息。</span><p><ol type="a"><li>执行如下命令，采用安全方式操作。<pre class="screen">runsafe</pre>
<p>显示如下信息：</p>
<pre class="screen">Input command:</pre>
</li><li>执行以下命令，查看该卷快照状态信息。<pre class="screen">cinder snapshot-show <em>快照ID</em></pre>
<p>回显信息中status项，是否与审计报告中卷快照状态一致</p>
<ul><li>是，卷快照为deleting状态执行<a href="#Open_Stack_00074__li1821213194918">4</a>，卷快照为error_deleting状态执行<a href="#Open_Stack_00074__li545516256013">5</a>。</li><li>否，操作结束。</li></ul>
</li></ol>
</p></li><li id="Open_Stack_00074__li1821213194918"><a name="Open_Stack_00074__li1821213194918"></a><a name="li1821213194918"></a><span>检查审计报告的内容，详细操作请参见<a href="#Open_Stack_00074__li385991723817">4</a>。</span></li><li id="Open_Stack_00074__li545516256013"><a name="Open_Stack_00074__li545516256013"></a><a name="li545516256013"></a><span>设置卷快照的状态为available。</span><p><p>参照<a href="#Open_Stack_00074__li18597143712439">3</a>，在安全模式下执行如下命令。</p>
<pre class="screen">cinder snapshot-reset-state <em>快照ID</em> --state available</pre>
</p></li><li><span>删除卷快照。</span><p><p>参照<a href="#Open_Stack_00074__li18597143712439">3</a>，在安全模式下执行如下命令。</p>
<pre class="screen">cinder snapshot-delete <em>快照ID</em></pre>
</p></li><li id="Open_Stack_00074__li1037414318211"><a name="Open_Stack_00074__li1037414318211"></a><a name="li1037414318211"></a><span>检查卷快照是否删除成功。</span><p><p>参照<a href="#Open_Stack_00074__li18597143712439">3</a>，在安全模式下执行如下命令。</p>
<pre class="screen">cinder snapshot-show <em>快照ID</em></pre>
<p>回显信息如下说明卷快照被删除成功。</p>
<pre class="screen">ERROR: No snapshot with a name or ID of 'e318e16e-5a1c-471f-89c2-5c76719aa346' exists.</pre>
<p>回显信息中status如果为error_deleting，说明卷快照删除失败。</p>
<p>回显信息中status如果为deleting，说明卷快照正在删除，需要等一会再次执行<a href="#Open_Stack_00074__li1037414318211">7</a>，直到确定卷快照删除成功或者失败。</p>
<p>卷快照是否删除成功？</p>
<ul><li>是，操作结束。</li><li>否：联系技术支持工程师协助解决。</li></ul>
</p></li></ol>
<p></p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题：</strong> <a href="Open_Stack_00069.html">常见问题</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>